package com.yungu.swift.api.base;

import com.yungu.swift.constants.OrderConstant;

import java.util.HashMap;
import java.util.Map;

public class Constants {

    /**
     * 拦截器用到的相关KEY
     */
    public final static String SIGN_KEY = "sign";
    public final static String APPID_KEY = "appid";
    public final static String TOKEN_KEY = "token";
    /**
     * 随机字符
     */
    public final static String NONCESTR_KEY = "noncestr";
    /**
     * 授权key加密密钥
     */
    public final static String ENCODE_KEY = "427a2cefce32ad37";
    /**
     * 签名加密密钥
     */
    public final static String AUTH_KEY = "fffa2a879e62e198924a95dc150dc33823bd0bf7abd3a20fff605f297ae9333804699723a6219048";

    /**
     * 订单状态MAP
     */
    public static Map<Integer, String> subStatusMap = new HashMap<>();

    static {
        subStatusMap.put(OrderConstant.ORDER_STATUS_WAIT, "等待司机应答");
        subStatusMap.put(OrderConstant.ORDER_STATUS_DRIVER_WAIT, "司机发单拼车中");
        subStatusMap.put(OrderConstant.ORDER_STATUS_CONFIRM, "司机已接单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_POOLING_WAIT, "预约订单等待接驾，司机已出发未到达");
        subStatusMap.put(OrderConstant.ORDER_STATUS_POOLING_FULL, "预约订单等待接驾，司机已到上车地点");
        subStatusMap.put(OrderConstant.ORDER_STATUS_GO, "司机已出发去接乘客");
        subStatusMap.put(OrderConstant.ORDER_STATUS_ARRIVE, "司机到达上车地点，等待乘客上车");
        subStatusMap.put(OrderConstant.ORDER_STATUS_START, "乘客已上车，行程开始");
        subStatusMap.put(OrderConstant.ORDER_STATUS_ARRIVED, "行程结束，司机送达目的地");
        subStatusMap.put(OrderConstant.ORDER_STATUS_FARE_CONFIRM, "司机确认费用，等待乘客支付");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PAY_CONFIRM_PASS_CANCEL, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PAY_CONFIRM_DRI_CANCEL, "司机取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PAY_GO_PASS_CANCEL, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PAY_GO_DRI_CANCEL, "司机取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PAY_WAIT_PASS_CANCEL, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PAY_WAIT_DRI_CANCEL, "司机取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_COMPLETE, "行程已结束");
        subStatusMap.put(OrderConstant.ORDER_STATUS_COMMENTED, "行程已结束");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PASSENGER_CANCEL, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PASSENGER_CANCEL_CONFIRMED, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PASSENGER_CANCEL_ARRIVED, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_DRIVER_CANCEL, "司机取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PASS_CANCEL_CONFIRM_FREE, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PASS_CANCEL_GO_FREE, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PASS_CANCEL_WAIT_FREE, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PASS_CANCEL_CONFIRM_PAY, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PASS_CANCEL_GO_PAY, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_PASS_CANCEL_WAIT_PAY, "乘客取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_DRI_CANCEL_CONFIRM_FREE, "司机取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_DRI_CANCEL_GO_FREE, "司机取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_DRI_CANCEL_CONFIRM_PAY, "司机取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_DRI_CANCEL_GO_PAY, "司机取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_DRI_CANCEL_WAIT_PAY, "司机取消订单");
        subStatusMap.put(OrderConstant.ORDER_STATUS_NO_ANSWER, "无人抢单，订单超时");
        subStatusMap.put(OrderConstant.ORDER_STATUS_CLOSE, "客服关闭订单");
    }

    /**
     * 上传文件夹（个人头像）
     **/
    public final static String UPLOAD_FOLDER_MYPIC = "myPic";
    /**
     * 订单支付存入KEY
     */
    public final static String ORDER_CACHE_KEY = "orderPayWaiting";
    /**
     * 支付缓存key
     **/
    public final static String PAY_KEY = "PAY_CONFIG";

}
